/**
 * 
 */
package com.yidu.erp.action.BeyondDesign;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.yidu.erp.model.BeyondDesignmx;
import com.yidu.erp.service.jihua.BeyondDesignmxService;

/**
 * @author hujiaqian 
 * 生产计划明细
 * 2017年10月23日
 */
@Controller 
@RequestMapping("designmx")
public class BeyondDesignmxAction {
	@Resource
	private BeyondDesignmxService beyondDesignmxService; //调用的方法
	/**
	 * 显示生产计划明细内容
	 * @param designId
	 * @return
	 */
	@RequestMapping("/mxshowList")
	@ResponseBody
	public  ModelAndView showList(String designId){
		ModelAndView view=new ModelAndView("prodesignform");//返回的页面
		List<BeyondDesignmx> list = beyondDesignmxService.select(designId);//根据ID显示明细集合
		view.addObject("mxshowlist",list);//传一个list
		return view;//返回的值
	}
}
